﻿namespace Busconeitor.Web.Utils
{
    using System.Configuration;
    using System.Web;

    using Busconeitor.Web.Models;

    public static class Params
    {
        public static LogOnModel CurrentUser
        {
            get { return (LogOnModel)HttpContext.Current.Session["CurrentUser"]; }
            set { HttpContext.Current.Session["CurrentUser"] = value; }
        }

        public static LogOnModel AdminUser
        {
            get
            {
                var model = new LogOnModel
                    {
                        UserName = ConfigurationManager.AppSettings.Get("adminUser"),
                        Password = ConfigurationManager.AppSettings.Get("adminPassword")
                    };
                return model;
            }
        }

        public static string DocumentPath
        {
            get 
            {
                return ConfigurationManager.AppSettings.Get("documentPath"); 
            }
        }
    }
}